import Vue from 'vue'
import App from './App'
import router from './router'
import  ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import VueWechatTitle from 'vue-wechat-title'
// import VueAxios from 'vue-axios'
// Vue.use(VueAxios, axios)
Vue.use(ElementUI)
Vue.use(VueWechatTitle)
Vue.config.productionTip = false
axios.defaults.baseURL = 'http://localhost:8848/'
/* 向vue对象中添加全局对象 以后发送ajax请求使用$http对象 */
Vue.prototype.$http = axios
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
